package es.ats.codington.festival.interfaces.daos;

import java.sql.Connection;

import es.ats.codington.festival.domain.Building;
import es.ats.codington.festival.domain.Place;

/**
 * The Interface IPlaceDAO.
 */
public interface IPlaceDAO {
	
	  /**
  	 * Insert place dao.
  	 *
  	 * @param conec the conec
  	 * @param insertPlace the insert place
  	 * @return true, if successful
  	 * @throws Exception the exception
  	 */
  	public boolean insertPlaceDAO(Connection conec, Place insertPlace) throws Exception;
	  
	  /**
  	 * Delete place dao.
  	 *
  	 * @param conec the conec
  	 * @param deletePlace the delete place
  	 * @return true, if successful
  	 * @throws Exception the exception
  	 */
  	public boolean deletePlaceDAO(Connection conec, Place deletePlace) throws Exception;
	  
	  /**
  	 * Update place dao.
  	 *
  	 * @param conec the conec
  	 * @param updatePlace the update place
  	 * @return true, if successful
  	 * @throws Exception the exception
  	 */
  	public boolean updatePlaceDAO(Connection conec, Place updatePlace) throws Exception;
	  
	  /**
  	 * Insert place dao.
  	 *
  	 * @param conec the conec
  	 * @param insertPlace the insert place
  	 * @return true, if successful
  	 * @throws Exception the exception
  	 */
  	public boolean insertPlaceDAO(Connection conec, Building insertPlace) throws Exception;
	  
	  /**
  	 * Delete place dao.
  	 *
  	 * @param conec the conec
  	 * @param deletePlace the delete place
  	 * @return true, if successful
  	 * @throws Exception the exception
  	 */
  	public boolean deletePlaceDAO(Connection conec, Building deletePlace) throws Exception;
	  
	  /**
  	 * Update place dao.
  	 *
  	 * @param conec the conec
  	 * @param updatePlace the update place
  	 * @return true, if successful
  	 * @throws Exception the exception
  	 */
  	public boolean updatePlaceDAO(Connection conec, Building updatePlace) throws Exception;
	  
	  /**
  	 * Show all place.
  	 *
  	 * @param conec the conec
  	 * @return true, if successful
  	 */
  	public boolean showAllPlace(Connection conec);
	  
	  /**
  	 * Show places id.
  	 *
  	 * @param conec the conec
  	 * @param id the id
  	 * @return true, if successful
  	 */
  	public boolean showPlacesId(Connection conec, int id);
	  
	  
}
